package icu.guodapeng.web.service.impl

import icu.guodapeng.api.service.DubboService
import org.apache.dubbo.config.annotation.Service
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component

@Service
@Component
class DubboServiceImpl : DubboService {
    @Autowired
    private lateinit var env: Environment

    override fun echo(param: String) = "dubbo service: $param. mark: ${env.getProperty("mark")}"
}